import javax.swing.*;

class GUI
{
	// creating new frame
	public static JFrame window = new JFrame();
	// variable storing an instance of the class
	public static GUI instance;

	
	public GUI()
	{	
		GUI.window.setSize(700, 600);	
		
		Control.getInstance().menu();
	}
	
	public void clear()
	{	
		window.getContentPane().repaint();
		window.getContentPane().removeAll();
	}
	
	public static GUI getInstance()
	{
		if (GUI.instance == null)
		{
			GUI.instance = new GUI();
		}
		
		return GUI.instance;
	}
	
	public static void visible()
	{
		GUI.window.setVisible(true);
	}	
}